import Head from 'next/head'
const siteTitle: string = 'Next.js Sample Website'
// import utilStyles from '../styles/utils.module.css'
import { getSortedPostsData } from '../lib/posts'
// import Link from 'next/link'
import Login from '../components/login/Login'

export default function Home({ allPostsData }) {
  return (
    <>
      <Head>
        <title>{siteTitle}</title>
      </Head>
        <Login />
    </>
  )
}

export async function getStaticProps() {
  const allPostsData = getSortedPostsData()
  return {
    props: {
      allPostsData
    }
  }
}
